/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class BathHeater {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040008';
    }

    get categoryName() {
        return '\u6d74\u9738';
    }

    getAirExchangeSwitch(params) {
        return command({
            method: 'getAirExchangeSwitch',
            methodId: 'pj7xj5FC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBrightness(params) {
        return command({
            method: 'getBrightness',
            methodId: 'pz93I4Pm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'pBTQTK8w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDefrostSwitch(params) {
        return command({
            method: 'getDefrostSwitch',
            methodId: 'pNnZFmhA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLight(params) {
        return command({
            method: 'getLight',
            methodId: 'pdN7PDoK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwingSwitch(params) {
        return command({
            method: 'getSwingSwitch',
            methodId: 'pXZuHlHU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ptRSCY9M',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTemperature(params) {
        return command({
            method: 'getTargetTemperature',
            methodId: 'p0cr8M4P',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWarmLight1(params) {
        return command({
            method: 'getWarmLight1',
            methodId: 'p3delsGl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWarmLight2(params) {
        return command({
            method: 'getWarmLight2',
            methodId: 'pkpDnud5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAirExchangeSwitch(params) {
        return command({
            method: 'setAirExchangeSwitch',
            methodId: 'pgh0vbj9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBrightness(params) {
        return command({
            method: 'setBrightness',
            methodId: 'pGoxs3ez',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDefrostSwitch(params) {
        return command({
            method: 'setDefrostSwitch',
            methodId: 'phEqdcan',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLight(params) {
        return command({
            method: 'setLight',
            methodId: 'ppAXwfqo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwingSwitch(params) {
        return command({
            method: 'setSwingSwitch',
            methodId: 'pDrhJxTE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3AFz1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTemperature(params) {
        return command({
            method: 'setTargetTemperature',
            methodId: 'p1vFcGDI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWarmLight1(params) {
        return command({
            method: 'setWarmLight1',
            methodId: 'pUPQ5SSR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWarmLight2(params) {
        return command({
            method: 'setWarmLight2',
            methodId: 'pZgR0V7W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default BathHeater;
